<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src = "./jquery-1.6.2.min.js"></script>
</head>
<style>
    .a{
        width:100px;
        height:100px;
        position: absolute;
        background-color:red;
    }
</style>
<body>
    <botton>move</botton>
    <div class = 'a'></div>
    <script>
        $("botton").click(function()
    {
        $("div").animate({
            left:100,
        },500);
    });
    $("botton").click(function(){
        $("div").animate({
            left:0,
        },500);
    });
    </script>
</body>
</html>